
<%
	List noticeList = NoticeService.$.getAllNotices();
%>

<fieldset>
	<legend>
		功能
	</legend>
	<table align="left" border="0px">
		<tr>
			<td>
				<input type="button" class="button" value="发信" />
			</td>
		</tr>
	</table>
</fieldset>
<fieldset>
	<legend>
		消息列表
	</legend>
	<table align='left' border='0px'>
		<thead>
			<th>
				编号
			</th>
			<th>
				类型
			</th>
			<th>
				名称
			</th>
			<th>
				详细信息
			</th>
			<th>
				创建日期
			</th>
		</thead>
		<tbody id='notice'>
			<%
			if(noticeList.size()>0){
				for (int i = 0; i < noticeList.size(); i++) {
					Notice notice = (Notice) noticeList.get(i);
			%>
			<tr>
				<td>
					<%=notice.getId()%>
				</td>
				<td>
					<%=notice.getType()%>
				</td>
				<td>
					<%=notice.getName()%>
				</td>
				<td>
					<%=notice.getDescription()%>
				</td>
				<td>
					<%=notice.getTimestamp()%>
				</td>
			</tr>
			<%
				}} else {
			%>
				<tr>
					<td>
						No records.
					</td>
				</tr>
			<%
				}
			%>
		</tbody>
	</table>
</fieldset>

<%@ page import="com.esms.struts.service.*"%>
<%@ page import="com.esms.bean.*"%>
<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ page import="java.util.*"%>